local rows = {
    {id = 1, nums = {1}, class = 'baccarat.BankerWin',  payout = 95},
    {id = 2, nums = {2}, class = 'baccarat.PlayerWin',  payout = 100},
    {id = 3, nums = {3}, class = 'baccarat.BankerPair', payout = 1100},
    {id = 4, nums = {4}, class = 'baccarat.PlayerPair', payout = 1100},
    {id = 5, nums = {5}, class = 'baccarat.Tie',        payout = 800},
}

local map = {}

for _, row in ipairs(rows) do
    map[row.id] = row
end

local M = {}

function M.get_by_id(id)
    return map[id]
end

M.rows = rows
M.map = map

return M